package com.gongpingjialoan.bean.car;

import java.util.ArrayList;
import java.util.List;

/**
 * 用于存储一键卖车成功后的商家
 * Created by Administrator on 2016/1/4.
 */
public class SelectShopSucceedData {
    private static SelectShopSucceedData instance;

    public static SelectShopSucceedData getInstance(){
        if(instance == null){
            instance = new SelectShopSucceedData();
        }
        return instance;
    }

    public List<ShopAttribute> shopSucceed = new ArrayList<>();

    public void clearList(){
        if (!shopSucceed.isEmpty()){
            shopSucceed.clear();
        }
    }

    public ShopAttribute setShopAttribute(String shopName,String shopUrl){
        ShopAttribute bute= new ShopAttribute(shopName,shopUrl);
        return bute;
    }

    public class ShopAttribute{
        ShopAttribute(String shopName,String shopUrl){
            this.shopName = shopName;
            this.shopUrl = shopUrl;
        }
        private String shopName;
        private String shopUrl;

        public String getShopName() {
            return shopName;
        }

        public String getShopUrl() {
            return shopUrl;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public void setShopUrl(String shopUrl) {
            this.shopUrl = shopUrl;
        }
    }
}
